package com.google.code.stalkernet.server.event;

import java.util.EventListener;

/**
 * Receives notifications about server-related events.
 *
 * @author Mikhail Vladimirov
 */
public interface ServerListener extends EventListener
{
    /**
     * Called when socket address was added.
     *
     * @param serverEvent event details
     */
    public void socketAddressAdded (ServerEvent serverEvent);

    /**
     * Called when socket address was removed.
     *
     * @param serverEvent event details
     */
    public void socketAddressRemoved (ServerEvent serverEvent);
}
